package com.qfjy.yangyulong;

/**
 * @author : Yang Yulong
 * @version : 1.0
 * @date : 2022/9/13 22:02
 */
public class TestDemo {
    public static void main(String[] args) {
        //生成ITBoss的代理对象
        ProxyUtil proxyUtil = new ProxyUtil(new ITBoss());
        //生成代理对象
        Boss p = (Boss) proxyUtil.getProxyObject();
        p.sign();

        ProxyUtil proxyUtil2 = new ProxyUtil(new ABoss());
        Boss p2 = (Boss) proxyUtil2.getProxyObject();
        p2.sign();

    }
}
